import { setToken, getToken, delToken } from '@/utils/storage'
export default {
  namespaced: true,
  state: {
    token: getToken()
  },
  getters: {},
  mutations: {
    setToken(state, token) {
      state.token = token
      setToken(token)
    },
    delToken(state) {
      state.token = null
      delToken()
    }
  },
  actions: {}
}
